package com.jy.rhin.config.ws;


import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: lww
 * @Date: 2022/5/18
 */
@Configuration
@EnableConfigurationProperties({WsServiceProperties.class, WsClientProperties.class,WsClientProperties.class})
public class WsConfig {

    @Bean
    public ServletRegistrationBean dispatcherServletAdr() {
        return new ServletRegistrationBean(new CXFServlet(), "/ws/*");
    }

}
